defaults.bluealsa.service "org.bluealsa"
defaults.bluealsa.device "9E:53:D5:1C:FE:07"
defaults.bluealsa.profile "a2dp"
defaults.bluealsa.delay 10000

bluealsa.default.link {
	@func concat
	strings [
		{
			@func getenv
			vars [ HOME ]
			default "/tmp"
		}
		"/.config/alsa/asoundrc-default"
	]
}

</tmp/asoundrc_usb>

pcm.!default {
	type asym
	capture.pcm cards.pcm.default
	playback.pcm {
		@func refer
		file {
			@func refer
			name bluealsa.default.link
		}
		name "bluealsa.default.pcm.name"
		default "cards.pcm.default"
	}
	hint.description {
		@func concat 
		strings [
			"Capture: sysdefault, Playback: "
			{
				@func refer
				name "bluealsa.default.pcm.description"
				default "sysdefault"
			}
			"Default Audio Device"
		]
	}
}

ctl.!default {
	@func refer
	file {
		@func refer
		name bluealsa.default.link
	}
	name "bluealsa.default.ctl"
	default {
		@func refer
		name ctl.sysdefault
	}
	hint.description "Default control device"
}
